package com.hc.pingtan.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hc.pingtan.model.KekeWitkeyIndustry;
import com.hc.pingtan.service.IKekeWitkeyIndustryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2021-10-26
 */
@Api(tags = "所属栏目接口")
@RestController
@RequestMapping("/keke-witkey-industry")
public class KekeWitkeyIndustryController {
    @Resource
    private IKekeWitkeyIndustryService iKekeWitkeyIndustryService;

    @ApiOperation(value = "发布需求，所属栏目接口", notes = "发布需求，所属栏目接口", httpMethod = "GET")
    @GetMapping("findList")
    public List<KekeWitkeyIndustry> findList() {
        QueryWrapper<KekeWitkeyIndustry> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("indus_pid", 0);
        return iKekeWitkeyIndustryService.list(queryWrapper);
    }
}
